//setInterval("signin()", 20000);
signin();
function signin(){
	$.ajax({
    url: "http://dookh.localhost/rest_dev.php/rest/user/signin",
	  dataType: "json",
	  method: "post",
	  data: "{'user' : 'amel', 'password' : '123456'}",
	  error: function(XMLHttpRequest, textStatus, errorThrown){
      	 alert(textStatus);
    },
    success: function(data, txtStatus, XMLHttpRequest) {
    	$("div#display").append(data);
 	},
 });
}